//
//  HttpHelper.h
//  创乐付
//
//  Created by wyx on 2017/5/4.
//  Copyright © 2017年 wyx. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AFNetworking.h"

@interface HttpHelper : NSObject
+ (void)GET:(NSString *)URLString
 parameters:(id)parameters
    success:(void (^)(id responseObject))success
    failure:(void (^)(NSError *error))failure;

+ (void)Post:(NSString *)URLString
  parameters:(id)parameters
     success:(void (^)(id responseObject))success
     failure:(void (^)(NSError *error))failure;
//表单上传图片

+ (void)FormPost:(NSString *)URLString   parameters:(id)parameters imageData:(NSData *)imageDate fileName:(NSString *)fileName success:(void (^)(id responseObject))success  failure:(void (^)(NSError *error))failure;

//表单上传图片
+ (void)uploadFileFormPostWithImageData:(NSData *)imageDate fileName:(NSString *)fileName success:(void (^)(id responseObject))success  failure:(void (^)(NSError *error))failure;

@end
